package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class AuditRejectReason implements Serializable {

	private static final long serialVersionUID = 1741653351837273640L;

	//fields
	private java.lang.Integer id;
	private java.lang.Integer type;
	private java.lang.String reason;
	private java.lang.Integer displayOrder;
	private java.sql.Timestamp createTime;

	//default constructor
	public AuditRejectReason() {
	}

	//getter
	public java.lang.Integer getId() {
		return id;
	}
	public java.lang.Integer getType() {
		return type;
	}
	public java.lang.String getReason() {
		return reason;
	}
	public java.lang.Integer getDisplayOrder() {
		return displayOrder;
	}
	public java.sql.Timestamp getCreateTime() {
		return createTime;
	}

	//setter
	public void setId(java.lang.Integer id) {
		this.id = id;
	}
	public void setType(java.lang.Integer type) {
		this.type = type;
	}
	public void setReason(java.lang.String reason) {
		this.reason = reason;
	}
	public void setDisplayOrder(java.lang.Integer displayOrder) {
		this.displayOrder = displayOrder;
	}
	public void setCreateTime(java.sql.Timestamp createTime) {
		this.createTime = createTime;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof AuditRejectReason))
			return false;

		final AuditRejectReason auditRejectReason = (AuditRejectReason)other;
		if (!this.id.equals(auditRejectReason.getId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(id).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("AuditRejectReason[")
			.append("id=").append(id).append(", ")
			.append("type=").append(type).append(", ")
			.append("reason=").append(reason).append(", ")
			.append("displayOrder=").append(displayOrder).append(", ")
			.append("createTime=").append(createTime).append("]").toString();
	}
}